package xyj.sparrow.discovery.zk.bean.strategies;

import org.apache.curator.x.discovery.ServiceInstance;
import org.apache.curator.x.discovery.details.ServiceCacheListener;

import java.util.List;

/**
 * @author 江南小俊
 * @since 2021/6/20 上午12:20
 **/
public interface ServiceListener extends ServiceCacheListener {
    ServiceInstance<Object> getInstance() throws Exception;

    List<ServiceInstance<Object>> listInstance();
}
